package entity;

public class OrderItem {

	private int itemId;   //订单项的编号
	private int orderId;  //订单项所属的订单编号
	private Goods goods;	//此订单项所购买的商品编号
	private int goodNumber;	//所购买商品的数量
	private double total_price;	//商品的总价
	
	public int getItemId() {
		return itemId;
	}
	public void setItemId(int itemId) {
		this.itemId = itemId;
	}
	public int getOrderId() {
		return orderId;
	}
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
	public Goods getGoods() {
		return goods;
	}
	public void setGoods(Goods goods) {
		this.goods = goods;
	}
	public int getGoodNumber() {
		return goodNumber;
	}
	public void setGoodNumber(int goodNumber) {
		this.goodNumber = goodNumber;
	}
	public double getTotal_price() {
		return total_price;
	}
	public void setTotal_price(double total_price) {
		this.total_price = total_price;
	}
	public OrderItem(int itemId, int orderId, Goods goods, int goodNumber, double total_price) {
		super();
		this.itemId = itemId;
		this.orderId = orderId;
		this.goods = goods;
		this.goodNumber = goodNumber;
		this.total_price = total_price;
	}
	public OrderItem() {
		super();
	}
	public OrderItem(Goods goods, int goodNumber, double total_price) {
		super();
		this.goods = goods;
		this.goodNumber = goodNumber;
		this.total_price = total_price;
	}
	
	
	
	
}
